package com.vodone.v1pin.core.utils
{
	import com.vodone.v1pin.core.ExternalInterfaceManager;
	import com.vodone.v1pin.core.model.ConditionVO;
	import com.vodone.v1pin.productlist.ProductListTypes;

	public class FindSameUtil
	{
		public static const TYPE_BRAND:String = "brand";
		public static const TYPE_COLOR:String = "color";
		public static const TYPE_CATEGORY:String = "category";
		
		public static function findSame( type:String , id:String ):void
		{
			trace("type:"+ type + "  id:" + id);
			var vo:ConditionVO = new ConditionVO();
			vo.id = id;
			switch( type ){
				case TYPE_CATEGORY: 
					vo.typeId =  ProductListTypes.CATEGORY;
					break;
				case TYPE_BRAND:
					vo.typeId =  ProductListTypes.BRAND;
					break;
				case TYPE_COLOR:
					vo.typeId =  ProductListTypes.SEARCH;
					vo.colorId = id;
					break;
			}
			
			ExternalInterfaceManager.NavtatorURL( ConditionVO.PRODUCTLIST , id ,vo );
		}
	}
}